From e4c5ce4cc38a0e478786387e6db9bb455ffef4a0 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Thu, 3 Nov 2016 17:46:32 +0800 Subject: [PATCH] Visual Studio builds: Use gtk-4.lib for the .lib file As with the autotools builds, use gtk-4 as the name of the .lib file that is produced from the build. Actually this is already done with GTK-3.x with the autotools builds, but this update is not done there as gtk-3.0.lib/gdk-3.0.lib/gailutil-3.0.lib was used for such a long time that changing it there might have caused trouble for people there. --- build/win32/gtkpc.py | 3 +-- build/win32/vs12/gtk-4.vcxprojin | 16 ++++++++-------- build/win32/vs12/gtk4-install.propsin | 6 +++--- build/win32/vs12/gtk4-version-paths.props.in | 6 +++++- 4 files changed, 17 insertions(+), 14 deletions(-) diff --git a/build/win32/gtkpc.py b/build/win32/gtkpc.py index 8d5e578aac..5deca919d2 100644 --- a/build/win32/gtkpc.py +++ b/build/win32/gtkpc.py @@ -72,8 +72,7 @@ def main(argv): '@GTK_EXTRA_CFLAGS@': '', '@GDK_EXTRA_LIBS@': gdk_win32_sys_libs + broadway_extra_libs, '@GSK_EXTRA_LIBS@': '', - '@GTK_EXTRA_LIBS@': '', - 'gtk-4': 'gtk-4.0'} + '@GTK_EXTRA_LIBS@': ''} pkg_replace_items.update(base_pc.base_replace_items) gtk_pc_replace_items.update(pkg_replace_items) diff --git a/build/win32/vs12/gtk-4.vcxprojin b/build/win32/vs12/gtk-4.vcxprojin index b1a7d1f4f5..e62ae94bda 100644 --- a/build/win32/vs12/gtk-4.vcxprojin +++ b/build/win32/vs12/gtk-4.vcxprojin @@ -146,7 +146,7 @@ $(GtkAdditionalLibs);%(AdditionalDependencies) $(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll - $(TargetDir)$(ProjectName).0.lib + $(TargetDir)$(ProjectName).lib true $(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).pdb Windows @@ -169,7 +169,7 @@ $(GtkAdditionalLibs);%(AdditionalDependencies) $(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll - $(TargetDir)$(ProjectName).0.lib + $(TargetDir)$(ProjectName).lib true $(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).pdb Windows @@ -189,7 +189,7 @@ $(GtkAdditionalLibs);%(AdditionalDependencies) $(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll - $(TargetDir)$(ProjectName).0.lib + $(TargetDir)$(ProjectName).lib true $(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).pdb Windows @@ -211,7 +211,7 @@ $(GtkAdditionalLibs);%(AdditionalDependencies) $(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll - $(TargetDir)$(ProjectName).0.lib + $(TargetDir)$(ProjectName).lib true $(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).pdb Windows @@ -236,7 +236,7 @@ $(GtkAdditionalLibs);%(AdditionalDependencies) $(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll - $(TargetDir)$(ProjectName).0.lib + $(TargetDir)$(ProjectName).lib true $(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).pdb Windows @@ -259,7 +259,7 @@ $(GtkAdditionalLibs);%(AdditionalDependencies) $(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll - $(TargetDir)$(ProjectName).0.lib + $(TargetDir)$(ProjectName).lib true $(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).pdb Windows @@ -279,7 +279,7 @@ $(GtkAdditionalLibs);%(AdditionalDependencies) $(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll - $(TargetDir)$(ProjectName).0.lib + $(TargetDir)$(ProjectName).lib true $(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).pdb Windows @@ -301,7 +301,7 @@ $(GtkAdditionalLibs);%(AdditionalDependencies) $(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).dll - $(TargetDir)$(ProjectName).0.lib + $(TargetDir)$(ProjectName).lib true $(OutDir)$(GtkDllPrefix)$(ProjectName)$(GtkDllSuffix).pdb Windows diff --git a/build/win32/vs12/gtk4-install.propsin b/build/win32/vs12/gtk4-install.propsin index 9a486c0c3c..bc843fcca2 100644 --- a/build/win32/vs12/gtk4-install.propsin +++ b/build/win32/vs12/gtk4-install.propsin @@ -13,7 +13,7 @@ if "$(Configuration)" == "Release_Broadway" goto DO_BROADWAY_BIN if "$(Configuration)" == "Debug_Broadway" goto DO_BROADWAY_BIN copy "$(BinDir)\$(GtkDllPrefix)gtk-4$(GtkDllSuffix).dll" $(CopyDir)\bin copy "$(BinDir)\$(GtkDllPrefix)gtk-4$(GtkDllSuffix).pdb" $(CopyDir)\bin -copy "$(BinDir)\gtk-$(ApiVersion).lib" $(CopyDir)\lib +copy "$(BinDir)\gtk-$(ApiVersionShort).lib" $(CopyDir)\lib copy "$(BinDir)\gtk4-demo.exe" $(CopyDir)\bin copy "$(BinDir)\gtk4-demo.pdb" $(CopyDir)\bin copy "$(BinDir)\gtk4-demo-application.exe" $(CopyDir)\bin @@ -39,7 +39,7 @@ if "$(Configuration)" == "Debug_Broadway" goto DO_BROADWAY_DEBUG :DO_BROADWAY_RELEASE copy .\Release\$(Platform)\bin\$(GtkDllPrefix)gtk-4$(GtkDllSuffix).dll $(CopyDir)\bin copy .\Release\$(Platform)\bin\$(GtkDllPrefix)gtk-4$(GtkDllSuffix).pdb $(CopyDir)\bin -copy .\Release\$(Platform)\bin\gtk-$(ApiVersion).lib $(CopyDir)\lib +copy .\Release\$(Platform)\bin\gtk-$(ApiVersionShort).lib $(CopyDir)\lib copy .\Release\$(Platform)\bin\gtk4-demo.exe $(CopyDir)\bin copy .\Release\$(Platform)\bin\gtk4-demo.pdb $(CopyDir)\bin copy .\Release\$(Platform)\bin\gtk4-demo-application.exe $(CopyDir)\bin @@ -60,7 +60,7 @@ goto DONE_BIN :DO_BROADWAY_DEBUG copy .\Debug\$(Platform)\bin\$(GtkDllPrefix)gtk-4$(GtkDllSuffix).dll $(CopyDir)\bin copy .\Debug\$(Platform)\bin\$(GtkDllPrefix)gtk-4$(GtkDllSuffix).pdb $(CopyDir)\bin -copy .\Debug\$(Platform)\bin\gtk-$(ApiVersion).lib $(CopyDir)\lib +copy .\Debug\$(Platform)\bin\gtk-$(ApiVersionShort).lib $(CopyDir)\lib copy .\Debug\$(Platform)\bin\gtk4-demo.exe $(CopyDir)\bin copy .\Debug\$(Platform)\bin\gtk4-demo.pdb $(CopyDir)\bin copy .\Debug\$(Platform)\bin\gtk4-demo-application.exe $(CopyDir)\bin diff --git a/build/win32/vs12/gtk4-version-paths.props.in b/build/win32/vs12/gtk4-version-paths.props.in index 8d16191cc9..be750d4874 100644 --- a/build/win32/vs12/gtk4-version-paths.props.in +++ b/build/win32/vs12/gtk4-version-paths.props.in @@ -4,7 +4,8 @@ 12 $(SolutionDir)\..\..\..\..\vs$(VSVer)\$(Platform) ..\..\..\..\vs$(VSVer)\$(Platform) - 4.0 + 4 + $(ApiVersionShort).0 @GTK_VERSION@ lib .0-0 @@ -28,6 +29,9 @@ $(CopyDir) + + $(ApiVersionShort) + $(ApiVersion) -- 2.30.2